(function () {
    var core = ecui,
        util = core.util,
        dom = ecui.dom;

    Object.assign(NS.ui, {

        ModifyPassword: ecui.inherits(
            ecui.ui.Control,
            {
                onclick: function () {
                    ecui.esr.request('data@FORM /erp-management/staff/personal/modify-pwd?modifyPasswordForm', function () {
                        var data = ecui.esr.getData('data');
                        if (data instanceof Object) {
                            ecui.tip('warn', '操作成功');
                            history.go(-1);
                        }
                    });
                }
            }
        )
    });
    ecui.esr.addRoute('modifyPassword', {
        weight: 9,
        model: [''],
        main: 'myCente_modifyPassword',
        view: 'modifyPassword',
        onbeforerender: function (context) {
        },
        onafterrender: function (context) {
        }
    });

}());